package com.jz.service.impl;

import com.jz.dao.CourseDetailDao;
import com.jz.dao.impl.CourseDetailDaoImpl;
import com.jz.entity.CourseDetail;
import com.jz.service.CourseDetailService;
import com.jz.service.CourseService;

public class CourseDetailServiceImpl implements CourseDetailService {
    //在service中调用Dao里面实现类的方法,用多态的方法创建对象
     CourseDetailDao cd = new CourseDetailDaoImpl();

    @Override
    public boolean addCourseDetail(CourseDetail c) {
        return cd.addCourseDetail(c)>0?true:false;
    }

    @Override
    public int deleCourseDetail(String cids) {
        return cd.delCourseDetail(cids);
    }
}
